package com.ztgf.commodity.models.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * author: chenyu.wang
 * date: 2020-05-28 10:53
 * Description: 类目树形结构vo
 */
@Data
public class CommodityCategoryTreeVO implements Serializable {

    @ApiModelProperty(value = "id")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;
    @ApiModelProperty(value = "名称")
    private String name;
    @ApiModelProperty(value = "首字母缩写")
    private String initials;
    @ApiModelProperty(value = "父id")
    private Long parentId;
    @ApiModelProperty(value = "排序")
    private Integer sort;
    @ApiModelProperty(value = "唯一标识")
    private String code;
    @ApiModelProperty(value = "是否显示")
    private Integer isDisplayNavBar;
    @ApiModelProperty(value = "佣金比例")
    private BigDecimal rate;
    @ApiModelProperty(value = "下级结构")
    private List<CommodityCategoryTreeVO> childList;
    @ApiModelProperty(value = "京东类目标识")
    private Integer jdFlag;

    @ApiModelProperty(value = "京东类目编码")
    private String jdCode;
}
